package com.keba.lamp.complaint.manager.impl;

import com.keba.basic.base.manager.impl.SuperManagerImpl;
import com.keba.basic.database.mybatis.conditions.Wraps;
import com.keba.basic.database.mybatis.conditions.query.LbQueryWrap;
import com.keba.lamp.complaint.entity.Plaintff;
import com.keba.lamp.complaint.manager.PlaintffManager;
import com.keba.lamp.complaint.mapper.PlaintffMapper;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 通用业务实现类
 * 原告信息
 * </p>
 *
 * @author chaowu.wang
 * @date 2025-03-14 23:03:53
 * @create [2025-03-14 23:03:53] [chaowu.wang] [代码生成器生成]
 */
@Slf4j
@RequiredArgsConstructor
@Service
public class PlaintffManagerImpl extends SuperManagerImpl<PlaintffMapper, Plaintff> implements PlaintffManager {

    @Override
    public List<Plaintff> queryByName(String name) {
        LbQueryWrap<Plaintff> queryWrap = Wraps.<Plaintff>lbQ()
                .like(Plaintff::getName, name);
        return this.list(queryWrap);
    }
}


